<template>
  <a-config-provider :locale="zh_CN">
    <img alt="Vue logo" class="logo" src="@/assets/logo.png" />
    <HelloWorld msg="Hello Vue 3 + Vite" />
    <a-button type="primary"> Primary </a-button>
    <div>
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link>
    </div>
    <router-view />
  </a-config-provider>
</template>
<script setup>
import HelloWorld from "@/components/HelloWorld.vue";
</script>
<script>
//配置anddv中文包
import zh_CN from "ant-design-vue/lib/locale-provider/zh_CN";
export default {
  data() {
    return {
      zh_CN,
    };
  },
};
</script>
<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
  .logo {
    margin: 0;
  }
}
</style>
